package win.ganbo.demo;

import win.ganbo.demo.utils.QRCodeFactory;

/**
 * 参考文章地址  http://www.jianshu.com/p/7ae3b7002530
 * @author ganbo
 *
 */
public class App {

    public static void main(String[] args) {

        String content = "大家好，我是李庆文，很高兴认识大家";
        String logUri = "d:/spring.jpg";
        String outFileUri = "d://bbb.jpg";
        int[] size = new int[] { 430, 430 };
        String format = "jpg";

        try {
            new QRCodeFactory().CreatQrImage(content, format, outFileUri, logUri, size);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}